const mongoose = require('mongoose')
const schema = mongoose.Schema({
  create_time: { type: Number, required: true }, // 创建时间
  update_time: { type: Number, required: true }, // 最后修改时间
  article_id: { type: String, required: true }, //
  user_id: { type: String, required: true }, //
  reply_user_id: { type: String, default: null }, //
  reply_id: { type: String, default: null }, //
  comment_text: { type: String, default: '' }, //
  like: { type: Array, default: [] } // 点赞
})

module.exports = mongoose.model('CommentList', schema, 'comment-list')
